#define _CRT_SECURE_NO_WARNINGS	

int FirstNotRepeatingChar(char* str)
{
    int len = strlen(str);
    for (int i = 0; i < len; i++)
    {
        int count = 0;
        for (int k = 0; k < i; k++)
        {
            if (str[k] == str[i])
                count++;
        }
        for (int x = i + 1; x < len; x++)
        {
            if (str[x] == str[i])
                count++;
        }
        if (!count)
        {
            return i;
        }
    }
    return -1;
}